import request from "@/utils/request";
import type {loginForm, loginResponseData, userResponseData} from "@/api/user/type";

enum API{
    LOGIN_URL="/api/user/login",
    USER_INFO_URL="/api/user/info"
}

export const reqLogin = (data: loginForm) => request.post<any, loginResponseData>(API.LOGIN_URL,data);
export const reqUserInfo = () => request.get<any, userResponseData>(API.USER_INFO_URL)